<?php

namespace app\admin\model\meet\product;

use app\admin\model\meet\Store;
use think\Model;
use traits\model\SoftDelete;

class SpecRel extends Model
{

    use SoftDelete;


    // 表名
    protected $name = 'meet_product_spec_rel';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    /**
     * 关联规格组
     * @return \think\model\relation\BelongsTo
     */
    public function spec()
    {
        return $this->belongsTo('Spec');
    }
}
